#include <model.h>
#include <string.h>

void TrackModelInit(track_model *tm, char track_id) {
  switch (track_id) {
  case 'a':
  case 'A':
    tm->num_nodes = 72;

    tm->sensor_nodes[0 * 2] = 0;
    tm->sensor_nodes[0 * 2 + 1] = 0;
    tm->nodes[0].type = NODE_SENSOR;
    StringCopy(tm->nodes[0].name, "A1");
    tm->nodes[0].id = 0;
    tm->nodes[0].id2 = 0;
    tm->nodes[0].se.ahead.dest = 51;
    tm->nodes[0].se.ahead.distance = 218;
    tm->nodes[0].se.behind.dest = 66;
    tm->nodes[0].se.behind.distance = 500;
    tm->nodes[0].se.trig_forward = 0;
    tm->nodes[0].se.trig_back = 0;
    tm->nodes[0].x = 100;
    tm->nodes[0].y = 10;

    tm->sensor_nodes[1 * 2] = 1;
    tm->sensor_nodes[1 * 2 + 1] = 1;
    tm->nodes[1].type = NODE_SENSOR;
    StringCopy(tm->nodes[1].name, "A3");
    tm->nodes[1].id = 1;
    tm->nodes[1].id2 = 1;
    tm->nodes[1].se.ahead.dest = 53;
    tm->nodes[1].se.ahead.distance = 62;
    tm->nodes[1].se.behind.dest = 15;
    tm->nodes[1].se.behind.distance = 440;
    tm->nodes[1].se.trig_forward = 0;
    tm->nodes[1].se.trig_back = 0;
    tm->nodes[1].x = 135;
    tm->nodes[1].y = 85;

    tm->sensor_nodes[2 * 2] = 2;
    tm->sensor_nodes[2 * 2 + 1] = 2;
    tm->nodes[2].type = NODE_SENSOR;
    StringCopy(tm->nodes[2].name, "A5");
    tm->nodes[2].id = 2;
    tm->nodes[2].id2 = 2;
    tm->nodes[2].se.ahead.dest = 42;
    tm->nodes[2].se.ahead.distance = 216;
    tm->nodes[2].se.behind.dest = 12;
    tm->nodes[2].se.behind.distance = 649;
    tm->nodes[2].se.trig_forward = 0;
    tm->nodes[2].se.trig_back = 0;
    tm->nodes[2].x = 160;
    tm->nodes[2].y = 285;

    tm->sensor_nodes[3 * 2] = 3;
    tm->sensor_nodes[3 * 2 + 1] = 3;
    tm->nodes[3].type = NODE_SENSOR;
    StringCopy(tm->nodes[3].name, "A7");
    tm->nodes[3].id = 3;
    tm->nodes[3].id2 = 3;
    tm->nodes[3].se.ahead.dest = 13;
    tm->nodes[3].se.ahead.distance = 473;
    tm->nodes[3].se.behind.dest = 41;
    tm->nodes[3].se.behind.distance = 211;
    tm->nodes[3].se.trig_forward = 0;
    tm->nodes[3].se.trig_back = 0;
    tm->nodes[3].x = 100;
    tm->nodes[3].y = 265;

    tm->sensor_nodes[4 * 2] = 4;
    tm->sensor_nodes[4 * 2 + 1] = 4;
    tm->nodes[4].type = NODE_SENSOR;
    StringCopy(tm->nodes[4].name, "A9");
    tm->nodes[4].id = 4;
    tm->nodes[4].id2 = 4;
    tm->nodes[4].se.ahead.dest = 11;
    tm->nodes[4].se.ahead.distance = 289;
    tm->nodes[4].se.behind.dest = 40;
    tm->nodes[4].se.behind.distance = 210;
    tm->nodes[4].se.trig_forward = 0;
    tm->nodes[4].se.trig_back = 0;
    tm->nodes[4].x = 70;
    tm->nodes[4].y = 245;

    tm->sensor_nodes[5 * 2] = 5;
    tm->sensor_nodes[5 * 2 + 1] = 5;
    tm->nodes[5].type = NODE_SENSOR;
    StringCopy(tm->nodes[5].name, "A11");
    tm->nodes[5].id = 5;
    tm->nodes[5].id2 = 5;
    tm->nodes[5].se.ahead.dest = 40;
    tm->nodes[5].se.ahead.distance = 410;
    tm->nodes[5].se.behind.dest = 69;
    tm->nodes[5].se.behind.distance = 60;
    tm->nodes[5].se.trig_forward = 0;
    tm->nodes[5].se.trig_back = 0;
    tm->nodes[5].x = 40;
    tm->nodes[5].y = 225;

    tm->sensor_nodes[6 * 2] = 6;
    tm->sensor_nodes[6 * 2 + 1] = 6;
    tm->nodes[6].type = NODE_SENSOR;
    StringCopy(tm->nodes[6].name, "A13");
    tm->nodes[6].id = 6;
    tm->nodes[6].id2 = 6;
    tm->nodes[6].se.ahead.dest = 43;
    tm->nodes[6].se.ahead.distance = 215;
    tm->nodes[6].se.behind.dest = 65;
    tm->nodes[6].se.behind.distance = 320;
    tm->nodes[6].se.trig_forward = 0;
    tm->nodes[6].se.trig_back = 0;
    tm->nodes[6].x = 70;
    tm->nodes[6].y = 30;

    tm->sensor_nodes[7 * 2] = 7;
    tm->sensor_nodes[7 * 2 + 1] = 7;
    tm->nodes[7].type = NODE_SENSOR;
    StringCopy(tm->nodes[7].name, "A15");
    tm->nodes[7].id = 7;
    tm->nodes[7].id2 = 7;
    tm->nodes[7].se.ahead.dest = 67;
    tm->nodes[7].se.ahead.distance = 145;
    tm->nodes[7].se.behind.dest = 43;
    tm->nodes[7].se.behind.distance = 394;
    tm->nodes[7].se.trig_forward = 0;
    tm->nodes[7].se.trig_back = 0;
    tm->nodes[7].x = 40;
    tm->nodes[7].y = 50;

    tm->sensor_nodes[8 * 2] = 8;
    tm->sensor_nodes[8 * 2 + 1] = 8;
    tm->nodes[8].type = NODE_SENSOR;
    StringCopy(tm->nodes[8].name, "B1");
    tm->nodes[8].id = 8;
    tm->nodes[8].id2 = 8;
    tm->nodes[8].se.ahead.dest = 30;
    tm->nodes[8].se.ahead.distance = 398;
    tm->nodes[8].se.behind.dest = 55;
    tm->nodes[8].se.behind.distance = 225;
    tm->nodes[8].se.trig_forward = 0;
    tm->nodes[8].se.trig_back = 0;
    tm->nodes[8].x = 290;
    tm->nodes[8].y = 235;

    tm->sensor_nodes[9 * 2] = 9;
    tm->sensor_nodes[9 * 2 + 1] = 9;
    tm->nodes[9].type = NODE_SENSOR;
    StringCopy(tm->nodes[9].name, "B3");
    tm->nodes[9].id = 9;
    tm->nodes[9].id2 = 9;
    tm->nodes[9].se.ahead.dest = 16;
    tm->nodes[9].se.ahead.distance = 230;
    tm->nodes[9].se.behind.dest = 55;
    tm->nodes[9].se.behind.distance = 220;
    tm->nodes[9].se.trig_forward = 0;
    tm->nodes[9].se.trig_back = 0;
    tm->nodes[9].x = 290;
    tm->nodes[9].y = 215;

    tm->sensor_nodes[10 * 2] = 10;
    tm->sensor_nodes[10 * 2 + 1] = 10;
    tm->nodes[10].type = NODE_SENSOR;
    StringCopy(tm->nodes[10].name, "B5");
    tm->nodes[10].id = 10;
    tm->nodes[10].id2 = 10;
    tm->nodes[10].se.ahead.dest = 25;
    tm->nodes[10].se.ahead.distance = 405;
    tm->nodes[10].se.behind.dest = 52;
    tm->nodes[10].se.behind.distance = 214;
    tm->nodes[10].se.trig_forward = 0;
    tm->nodes[10].se.trig_back = 0;
    tm->nodes[10].x = 290;
    tm->nodes[10].y = 35;

    tm->sensor_nodes[11 * 2] = 11;
    tm->sensor_nodes[11 * 2 + 1] = 11;
    tm->nodes[11].type = NODE_SENSOR;
    StringCopy(tm->nodes[11].name, "B7");
    tm->nodes[11].id = 11;
    tm->nodes[11].id2 = 11;
    tm->nodes[11].se.ahead.dest = 4;
    tm->nodes[11].se.ahead.distance = 289;
    tm->nodes[11].se.behind.dest = 68;
    tm->nodes[11].se.behind.distance = 60;
    tm->nodes[11].se.trig_forward = 0;
    tm->nodes[11].se.trig_back = 0;
    tm->nodes[11].x = 20;
    tm->nodes[11].y = 245;

    tm->sensor_nodes[12 * 2] = 12;
    tm->sensor_nodes[12 * 2 + 1] = 12;
    tm->nodes[12].type = NODE_SENSOR;
    StringCopy(tm->nodes[12].name, "B9");
    tm->nodes[12].id = 12;
    tm->nodes[12].id2 = 12;
    tm->nodes[12].se.ahead.dest = 2;
    tm->nodes[12].se.ahead.distance = 649;
    tm->nodes[12].se.behind.dest = 70;
    tm->nodes[12].se.behind.distance = 70;
    tm->nodes[12].se.trig_forward = 0;
    tm->nodes[12].se.trig_back = 0;
    tm->nodes[12].x = 20;
    tm->nodes[12].y = 285;

    tm->sensor_nodes[13 * 2] = 13;
    tm->sensor_nodes[13 * 2 + 1] = 13;
    tm->nodes[13].type = NODE_SENSOR;
    StringCopy(tm->nodes[13].name, "B11");
    tm->nodes[13].id = 13;
    tm->nodes[13].id2 = 13;
    tm->nodes[13].se.ahead.dest = 3;
    tm->nodes[13].se.ahead.distance = 473;
    tm->nodes[13].se.behind.dest = 71;
    tm->nodes[13].se.behind.distance = 70;
    tm->nodes[13].se.trig_forward = 0;
    tm->nodes[13].se.trig_back = 0;
    tm->nodes[13].x = 20;
    tm->nodes[13].y = 265;

    tm->sensor_nodes[14 * 2] = 14;
    tm->sensor_nodes[14 * 2 + 1] = 14;
    tm->nodes[14].type = NODE_SENSOR;
    StringCopy(tm->nodes[14].name, "B13");
    tm->nodes[14].id = 14;
    tm->nodes[14].id2 = 14;
    tm->nodes[14].se.ahead.dest = 58;
    tm->nodes[14].se.ahead.distance = 224;
    tm->nodes[14].se.behind.dest = 31;
    tm->nodes[14].se.behind.distance = 202;
    tm->nodes[14].se.trig_forward = 0;
    tm->nodes[14].se.trig_back = 0;
    tm->nodes[14].x = 365;
    tm->nodes[14].y = 180;

    tm->sensor_nodes[15 * 2] = 15;
    tm->sensor_nodes[15 * 2 + 1] = 15;
    tm->nodes[15].type = NODE_SENSOR;
    StringCopy(tm->nodes[15].name, "B15");
    tm->nodes[15].id = 15;
    tm->nodes[15].id2 = 15;
    tm->nodes[15].se.ahead.dest = 1;
    tm->nodes[15].se.ahead.distance = 440;
    tm->nodes[15].se.behind.dest = 54;
    tm->nodes[15].se.behind.distance = 70;
    tm->nodes[15].se.trig_forward = 0;
    tm->nodes[15].se.trig_back = 0;
    tm->nodes[15].x = 135;
    tm->nodes[15].y = 185;

    tm->sensor_nodes[16 * 2] = 16;
    tm->sensor_nodes[16 * 2 + 1] = 16;
    tm->nodes[16].type = NODE_SENSOR;
    StringCopy(tm->nodes[16].name, "C1");
    tm->nodes[16].id = 16;
    tm->nodes[16].id2 = 16;
    tm->nodes[16].se.ahead.dest = 9;
    tm->nodes[16].se.ahead.distance = 230;
    tm->nodes[16].se.behind.dest = 61;
    tm->nodes[16].se.behind.distance = 228;
    tm->nodes[16].se.trig_forward = 0;
    tm->nodes[16].se.trig_back = 0;
    tm->nodes[16].x = 325;
    tm->nodes[16].y = 180;

    tm->sensor_nodes[17 * 2] = 17;
    tm->sensor_nodes[17 * 2 + 1] = 17;
    tm->nodes[17].type = NODE_SENSOR;
    StringCopy(tm->nodes[17].name, "C3");
    tm->nodes[17].id = 17;
    tm->nodes[17].id2 = 17;
    tm->nodes[17].se.ahead.dest = 64;
    tm->nodes[17].se.ahead.distance = 410;
    tm->nodes[17].se.behind.dest = 44;
    tm->nodes[17].se.behind.distance = 226;
    tm->nodes[17].se.trig_forward = 0;
    tm->nodes[17].se.trig_back = 0;
    tm->nodes[17].x = 420;
    tm->nodes[17].y = 285;

    tm->sensor_nodes[18 * 2] = 18;
    tm->sensor_nodes[18 * 2 + 1] = 18;
    tm->nodes[18].type = NODE_SENSOR;
    StringCopy(tm->nodes[18].name, "C5");
    tm->nodes[18].id = 18;
    tm->nodes[18].id2 = 18;
    tm->nodes[18].se.ahead.dest = 45;
    tm->nodes[18].se.ahead.distance = 79;
    tm->nodes[18].se.behind.dest = 54;
    tm->nodes[18].se.behind.distance = 411;
    tm->nodes[18].se.trig_forward = 0;
    tm->nodes[18].se.trig_back = 0;
    tm->nodes[18].x = 220;
    tm->nodes[18].y = 260;

    tm->sensor_nodes[19 * 2] = 19;
    tm->sensor_nodes[19 * 2 + 1] = 19;
    tm->nodes[19].type = NODE_SENSOR;
    StringCopy(tm->nodes[19].name, "C7");
    tm->nodes[19].id = 19;
    tm->nodes[19].id2 = 19;
    tm->nodes[19].se.ahead.dest = 57;
    tm->nodes[19].se.ahead.distance = 215;
    tm->nodes[19].se.behind.dest = 42;
    tm->nodes[19].se.behind.distance = 145;
    tm->nodes[19].se.trig_forward = 0;
    tm->nodes[19].se.trig_back = 0;
    tm->nodes[19].x = 265;
    tm->nodes[19].y = 285;

    tm->sensor_nodes[20 * 2] = 20;
    tm->sensor_nodes[20 * 2 + 1] = 20;
    tm->nodes[20].type = NODE_SENSOR;
    StringCopy(tm->nodes[20].name, "C9");
    tm->nodes[20].id = 20;
    tm->nodes[20].id2 = 20;
    tm->nodes[20].se.ahead.dest = 54;
    tm->nodes[20].se.ahead.distance = 305;
    tm->nodes[20].se.behind.dest = 55;
    tm->nodes[20].se.behind.distance = 146;
    tm->nodes[20].se.trig_forward = 0;
    tm->nodes[20].se.trig_back = 0;
    tm->nodes[20].x = 200;
    tm->nodes[20].y = 235;

    tm->sensor_nodes[21 * 2] = 21;
    tm->sensor_nodes[21 * 2 + 1] = 21;
    tm->nodes[21].type = NODE_SENSOR;
    StringCopy(tm->nodes[21].name, "C11");
    tm->nodes[21].id = 21;
    tm->nodes[21].id2 = 21;
    tm->nodes[21].se.ahead.dest = 52;
    tm->nodes[21].se.ahead.distance = 140;
    tm->nodes[21].se.behind.dest = 53;
    tm->nodes[21].se.behind.distance = 314;
    tm->nodes[21].se.trig_forward = 0;
    tm->nodes[21].se.trig_back = 0;
    tm->nodes[21].x = 200;
    tm->nodes[21].y = 35;

    tm->sensor_nodes[22 * 2] = 22;
    tm->sensor_nodes[22 * 2 + 1] = 22;
    tm->nodes[22].type = NODE_SENSOR;
    StringCopy(tm->nodes[22].name, "C13");
    tm->nodes[22].id = 22;
    tm->nodes[22].id2 = 22;
    tm->nodes[22].se.ahead.dest = 35;
    tm->nodes[22].se.ahead.distance = 877;
    tm->nodes[22].se.behind.dest = 50;
    tm->nodes[22].se.behind.distance = 60;
    tm->nodes[22].se.trig_forward = 0;
    tm->nodes[22].se.trig_back = 0;
    tm->nodes[22].x = 245;
    tm->nodes[22].y = 11;

    tm->sensor_nodes[23 * 2] = 23;
    tm->sensor_nodes[23 * 2 + 1] = 23;
    tm->nodes[23].type = NODE_SENSOR;
    StringCopy(tm->nodes[23].name, "C15");
    tm->nodes[23].id = 23;
    tm->nodes[23].id2 = 23;
    tm->nodes[23].se.ahead.dest = 29;
    tm->nodes[23].se.ahead.distance = 405;
    tm->nodes[23].se.behind.dest = 45;
    tm->nodes[23].se.behind.distance = 223;
    tm->nodes[23].se.trig_forward = 0;
    tm->nodes[23].se.trig_back = 0;
    tm->nodes[23].x = 294;
    tm->nodes[23].y = 260;

    tm->sensor_nodes[24 * 2] = 24;
    tm->sensor_nodes[24 * 2 + 1] = 24;
    tm->nodes[24].type = NODE_SENSOR;
    StringCopy(tm->nodes[24].name, "D1");
    tm->nodes[24].id = 24;
    tm->nodes[24].id2 = 24;
    tm->nodes[24].se.ahead.dest = 59;
    tm->nodes[24].se.ahead.distance = 227;
    tm->nodes[24].se.behind.dest = 33;
    tm->nodes[24].se.behind.distance = 200;
    tm->nodes[24].se.trig_forward = 0;
    tm->nodes[24].se.trig_back = 0;
    tm->nodes[24].x = 365;
    tm->nodes[24].y = 90;

    tm->sensor_nodes[25 * 2] = 25;
    tm->sensor_nodes[25 * 2 + 1] = 25;
    tm->nodes[25].type = NODE_SENSOR;
    StringCopy(tm->nodes[25].name, "D3");
    tm->nodes[25].id = 25;
    tm->nodes[25].id2 = 25;
    tm->nodes[25].se.ahead.dest = 49;
    tm->nodes[25].se.ahead.distance = 223;
    tm->nodes[25].se.behind.dest = 10;
    tm->nodes[25].se.behind.distance = 405;
    tm->nodes[25].se.trig_forward = 0;
    tm->nodes[25].se.trig_back = 0;
    tm->nodes[25].x = 400;
    tm->nodes[25].y = 35;

    tm->sensor_nodes[26 * 2] = 26;
    tm->sensor_nodes[26 * 2 + 1] = 26;
    tm->nodes[26].type = NODE_SENSOR;
    StringCopy(tm->nodes[26].name, "D5");
    tm->nodes[26].id = 26;
    tm->nodes[26].id2 = 26;
    tm->nodes[26].se.ahead.dest = 34;
    tm->nodes[26].se.ahead.distance = 375;
    tm->nodes[26].se.behind.dest = 48;
    tm->nodes[26].se.behind.distance = 213;
    tm->nodes[26].se.trig_forward = 0;
    tm->nodes[26].se.trig_back = 0;
    tm->nodes[26].x = 550;
    tm->nodes[26].y = 70;

    tm->sensor_nodes[27 * 2] = 27;
    tm->sensor_nodes[27 * 2 + 1] = 27;
    tm->nodes[27].type = NODE_SENSOR;
    StringCopy(tm->nodes[27].name, "D7");
    tm->nodes[27].id = 27;
    tm->nodes[27].id2 = 27;
    tm->nodes[27].se.ahead.dest = 48;
    tm->nodes[27].se.ahead.distance = 290;
    tm->nodes[27].se.behind.dest = 35;
    tm->nodes[27].se.behind.distance = 375;
    tm->nodes[27].se.trig_forward = 0;
    tm->nodes[27].se.trig_back = 0;
    tm->nodes[27].x = 550;
    tm->nodes[27].y = 42;

    tm->sensor_nodes[28 * 2] = 28;
    tm->sensor_nodes[28 * 2 + 1] = 28;
    tm->nodes[28].type = NODE_SENSOR;
    StringCopy(tm->nodes[28].name, "D9");
    tm->nodes[28].id = 28;
    tm->nodes[28].id2 = 28;
    tm->nodes[28].se.ahead.dest = 37;
    tm->nodes[28].se.ahead.distance = 361;
    tm->nodes[28].se.behind.dest = 47;
    tm->nodes[28].se.behind.distance = 291;
    tm->nodes[28].se.trig_forward = 0;
    tm->nodes[28].se.trig_back = 0;
    tm->nodes[28].x = 550;
    tm->nodes[28].y = 225;

    tm->sensor_nodes[29 * 2] = 29;
    tm->sensor_nodes[29 * 2 + 1] = 29;
    tm->nodes[29].type = NODE_SENSOR;
    StringCopy(tm->nodes[29].name, "D11");
    tm->nodes[29].id = 29;
    tm->nodes[29].id2 = 29;
    tm->nodes[29].se.ahead.dest = 23;
    tm->nodes[29].se.ahead.distance = 405;
    tm->nodes[29].se.behind.dest = 46;
    tm->nodes[29].se.behind.distance = 220;
    tm->nodes[29].se.trig_forward = 0;
    tm->nodes[29].se.trig_back = 0;
    tm->nodes[29].x = 400;
    tm->nodes[29].y = 260;

    tm->sensor_nodes[30 * 2] = 30;
    tm->sensor_nodes[30 * 2 + 1] = 30;
    tm->nodes[30].type = NODE_SENSOR;
    StringCopy(tm->nodes[30].name, "D13");
    tm->nodes[30].id = 30;
    tm->nodes[30].id2 = 30;
    tm->nodes[30].se.ahead.dest = 8;
    tm->nodes[30].se.ahead.distance = 398;
    tm->nodes[30].se.behind.dest = 56;
    tm->nodes[30].se.behind.distance = 225;
    tm->nodes[30].se.trig_forward = 0;
    tm->nodes[30].se.trig_back = 0;
    tm->nodes[30].x = 400;
    tm->nodes[30].y = 235;

    tm->sensor_nodes[31 * 2] = 31;
    tm->sensor_nodes[31 * 2 + 1] = 31;
    tm->nodes[31].type = NODE_SENSOR;
    StringCopy(tm->nodes[31].name, "D15");
    tm->nodes[31].id = 31;
    tm->nodes[31].id2 = 31;
    tm->nodes[31].se.ahead.dest = 14;
    tm->nodes[31].se.ahead.distance = 202;
    tm->nodes[31].se.behind.dest = 56;
    tm->nodes[31].se.behind.distance = 230;
    tm->nodes[31].se.trig_forward = 0;
    tm->nodes[31].se.trig_back = 0;
    tm->nodes[31].x = 400;
    tm->nodes[31].y = 215;

    tm->sensor_nodes[32 * 2] = 32;
    tm->sensor_nodes[32 * 2 + 1] = 32;
    tm->nodes[32].type = NODE_SENSOR;
    StringCopy(tm->nodes[32].name, "E1");
    tm->nodes[32].id = 32;
    tm->nodes[32].id2 = 32;
    tm->nodes[32].se.ahead.dest = 60;
    tm->nodes[32].se.ahead.distance = 222;
    tm->nodes[32].se.behind.dest = 39;
    tm->nodes[32].se.behind.distance = 203;
    tm->nodes[32].se.trig_forward = 0;
    tm->nodes[32].se.trig_back = 0;
    tm->nodes[32].x = 325;
    tm->nodes[32].y = 90;

    tm->sensor_nodes[33 * 2] = 33;
    tm->sensor_nodes[33 * 2 + 1] = 33;
    tm->nodes[33].type = NODE_SENSOR;
    StringCopy(tm->nodes[33].name, "E3");
    tm->nodes[33].id = 33;
    tm->nodes[33].id2 = 33;
    tm->nodes[33].se.ahead.dest = 24;
    tm->nodes[33].se.ahead.distance = 200;
    tm->nodes[33].se.behind.dest = 49;
    tm->nodes[33].se.behind.distance = 220;
    tm->nodes[33].se.trig_forward = 0;
    tm->nodes[33].se.trig_back = 0;
    tm->nodes[33].x = 400;
    tm->nodes[33].y = 50;

    tm->sensor_nodes[34 * 2] = 34;
    tm->sensor_nodes[34 * 2 + 1] = 34;
    tm->nodes[34].type = NODE_SENSOR;
    StringCopy(tm->nodes[34].name, "E5");
    tm->nodes[34].id = 34;
    tm->nodes[34].id2 = 34;
    tm->nodes[34].se.ahead.dest = 26;
    tm->nodes[34].se.ahead.distance = 375;
    tm->nodes[34].se.behind.dest = 49;
    tm->nodes[34].se.behind.distance = 74;
    tm->nodes[34].se.trig_forward = 0;
    tm->nodes[34].se.trig_back = 0;
    tm->nodes[34].x = 470;
    tm->nodes[34].y = 35;

    tm->sensor_nodes[35 * 2] = 35;
    tm->sensor_nodes[35 * 2 + 1] = 35;
    tm->nodes[35].type = NODE_SENSOR;
    StringCopy(tm->nodes[35].name, "E7");
    tm->nodes[35].id = 35;
    tm->nodes[35].id2 = 35;
    tm->nodes[35].se.ahead.dest = 27;
    tm->nodes[35].se.ahead.distance = 375;
    tm->nodes[35].se.behind.dest = 22;
    tm->nodes[35].se.behind.distance = 877;
    tm->nodes[35].se.trig_forward = 0;
    tm->nodes[35].se.trig_back = 0;
    tm->nodes[35].x = 470;
    tm->nodes[35].y = 11;

    tm->sensor_nodes[36 * 2] = 36;
    tm->sensor_nodes[36 * 2 + 1] = 36;
    tm->nodes[36].type = NODE_SENSOR;
    StringCopy(tm->nodes[36].name, "E9");
    tm->nodes[36].id = 36;
    tm->nodes[36].id2 = 36;
    tm->nodes[36].se.ahead.dest = 47;
    tm->nodes[36].se.ahead.distance = 215;
    tm->nodes[36].se.behind.dest = 38;
    tm->nodes[36].se.behind.distance = 375;
    tm->nodes[36].se.trig_forward = 0;
    tm->nodes[36].se.trig_back = 0;
    tm->nodes[36].x = 550;
    tm->nodes[36].y = 200;

    tm->sensor_nodes[37 * 2] = 37;
    tm->sensor_nodes[37 * 2 + 1] = 37;
    tm->nodes[37].type = NODE_SENSOR;
    StringCopy(tm->nodes[37].name, "E11");
    tm->nodes[37].id = 37;
    tm->nodes[37].id2 = 37;
    tm->nodes[37].se.ahead.dest = 28;
    tm->nodes[37].se.ahead.distance = 361;
    tm->nodes[37].se.behind.dest = 46;
    tm->nodes[37].se.behind.distance = 65;
    tm->nodes[37].se.trig_forward = 0;
    tm->nodes[37].se.trig_back = 0;
    tm->nodes[37].x = 470;
    tm->nodes[37].y = 260;

    tm->sensor_nodes[38 * 2] = 38;
    tm->sensor_nodes[38 * 2 + 1] = 38;
    tm->nodes[38].type = NODE_SENSOR;
    StringCopy(tm->nodes[38].name, "E13");
    tm->nodes[38].id = 38;
    tm->nodes[38].id2 = 38;
    tm->nodes[38].se.ahead.dest = 56;
    tm->nodes[38].se.ahead.distance = 62;
    tm->nodes[38].se.behind.dest = 36;
    tm->nodes[38].se.behind.distance = 375;
    tm->nodes[38].se.trig_forward = 0;
    tm->nodes[38].se.trig_back = 0;
    tm->nodes[38].x = 470;
    tm->nodes[38].y = 235;

    tm->sensor_nodes[39 * 2] = 39;
    tm->sensor_nodes[39 * 2 + 1] = 39;
    tm->nodes[39].type = NODE_SENSOR;
    StringCopy(tm->nodes[39].name, "E15");
    tm->nodes[39].id = 39;
    tm->nodes[39].id2 = 39;
    tm->nodes[39].se.ahead.dest = 52;
    tm->nodes[39].se.ahead.distance = 230;
    tm->nodes[39].se.behind.dest = 32;
    tm->nodes[39].se.behind.distance = 203;
    tm->nodes[39].se.trig_forward = 0;
    tm->nodes[39].se.trig_back = 0;
    tm->nodes[39].x = 290;
    tm->nodes[39].y = 50;

    tm->nodes[40].type = NODE_SWITCH;
    StringCopy(tm->nodes[40].name, "SW1");
    tm->nodes[40].id = 40;
    tm->nodes[40].id2 = 1;
    tm->nodes[40].sw.ahead[1].dest = 5;
    tm->nodes[40].sw.ahead[1].distance = 410;
    tm->nodes[40].sw.ahead[0].dest = 4;
    tm->nodes[40].sw.ahead[0].distance = 210;
    tm->nodes[40].sw.behind.dest = 41;
    tm->nodes[40].sw.behind.distance = 191;
    tm->nodes[40].x = 140;
    tm->nodes[40].y = 255;
    tm->nodes[40].sw.set = SWITCH_CURVED;
    tm->nodes[41].type = NODE_SWITCH;
    StringCopy(tm->nodes[41].name, "SW2");
    tm->nodes[41].id = 41;
    tm->nodes[41].id2 = 2;
    tm->nodes[41].sw.ahead[1].dest = 40;
    tm->nodes[41].sw.ahead[1].distance = 191;
    tm->nodes[41].sw.ahead[0].dest = 3;
    tm->nodes[41].sw.ahead[0].distance = 211;
    tm->nodes[41].sw.behind.dest = 42;
    tm->nodes[41].sw.behind.distance = 182;
    tm->nodes[41].x = 180;
    tm->nodes[41].y = 275;
    tm->nodes[41].sw.set = SWITCH_CURVED;
    tm->nodes[42].type = NODE_SWITCH;
    StringCopy(tm->nodes[42].name, "SW3");
    tm->nodes[42].id = 42;
    tm->nodes[42].id2 = 3;
    tm->nodes[42].sw.ahead[1].dest = 2;
    tm->nodes[42].sw.ahead[1].distance = 216;
    tm->nodes[42].sw.ahead[0].dest = 41;
    tm->nodes[42].sw.ahead[0].distance = 182;
    tm->nodes[42].sw.behind.dest = 19;
    tm->nodes[42].sw.behind.distance = 145;
    tm->nodes[42].x = 230;
    tm->nodes[42].y = 285;
    tm->nodes[42].sw.set = SWITCH_CURVED;
    tm->nodes[43].type = NODE_SWITCH;
    StringCopy(tm->nodes[43].name, "SW4");
    tm->nodes[43].id = 43;
    tm->nodes[43].id2 = 4;
    tm->nodes[43].sw.ahead[1].dest = 7;
    tm->nodes[43].sw.ahead[1].distance = 394;
    tm->nodes[43].sw.ahead[0].dest = 6;
    tm->nodes[43].sw.ahead[0].distance = 215;
    tm->nodes[43].sw.behind.dest = 51;
    tm->nodes[43].sw.behind.distance = 185;
    tm->nodes[43].x = 140;
    tm->nodes[43].y = 20;
    tm->nodes[43].sw.set = SWITCH_STRAIGHT;
    tm->nodes[44].type = NODE_SWITCH;
    StringCopy(tm->nodes[44].name, "SW5");
    tm->nodes[44].id = 44;
    tm->nodes[44].id2 = 5;
    tm->nodes[44].sw.ahead[1].dest = 17;
    tm->nodes[44].sw.ahead[1].distance = 226;
    tm->nodes[44].sw.ahead[0].dest = 46;
    tm->nodes[44].sw.ahead[0].distance = 334;
    tm->nodes[44].sw.behind.dest = 57;
    tm->nodes[44].sw.behind.distance = 187;
    tm->nodes[44].x = 375;
    tm->nodes[44].y = 285;
    tm->nodes[44].sw.set = SWITCH_CURVED;
    tm->nodes[45].type = NODE_SWITCH;
    StringCopy(tm->nodes[45].name, "SW6");
    tm->nodes[45].id = 45;
    tm->nodes[45].id2 = 6;
    tm->nodes[45].sw.ahead[1].dest = 23;
    tm->nodes[45].sw.ahead[1].distance = 223;
    tm->nodes[45].sw.ahead[0].dest = 57;
    tm->nodes[45].sw.ahead[0].distance = 338;
    tm->nodes[45].sw.behind.dest = 18;
    tm->nodes[45].sw.behind.distance = 79;
    tm->nodes[45].x = 245;
    tm->nodes[45].y = 260;
    tm->nodes[45].sw.set = SWITCH_STRAIGHT;
    tm->nodes[46].type = NODE_SWITCH;
    StringCopy(tm->nodes[46].name, "SW7");
    tm->nodes[46].id = 46;
    tm->nodes[46].id2 = 7;
    tm->nodes[46].sw.ahead[1].dest = 29;
    tm->nodes[46].sw.ahead[1].distance = 220;
    tm->nodes[46].sw.ahead[0].dest = 44;
    tm->nodes[46].sw.ahead[0].distance = 334;
    tm->nodes[46].sw.behind.dest = 37;
    tm->nodes[46].sw.behind.distance = 65;
    tm->nodes[46].x = 447;
    tm->nodes[46].y = 260;
    tm->nodes[46].sw.set = SWITCH_STRAIGHT;
    tm->nodes[47].type = NODE_SWITCH;
    StringCopy(tm->nodes[47].name, "SW8");
    tm->nodes[47].id = 47;
    tm->nodes[47].id2 = 8;
    tm->nodes[47].sw.ahead[1].dest = 28;
    tm->nodes[47].sw.ahead[1].distance = 291;
    tm->nodes[47].sw.ahead[0].dest = 36;
    tm->nodes[47].sw.ahead[0].distance = 215;
    tm->nodes[47].sw.behind.dest = 48;
    tm->nodes[47].sw.behind.distance = 193;
    tm->nodes[47].x = 570;
    tm->nodes[47].y = 166;
    tm->nodes[47].sw.set = SWITCH_CURVED;
    tm->nodes[48].type = NODE_SWITCH;
    StringCopy(tm->nodes[48].name, "SW9");
    tm->nodes[48].id = 48;
    tm->nodes[48].id2 = 9;
    tm->nodes[48].sw.ahead[1].dest = 27;
    tm->nodes[48].sw.ahead[1].distance = 290;
    tm->nodes[48].sw.ahead[0].dest = 26;
    tm->nodes[48].sw.ahead[0].distance = 213;
    tm->nodes[48].sw.behind.dest = 47;
    tm->nodes[48].sw.behind.distance = 193;
    tm->nodes[48].x = 570;
    tm->nodes[48].y = 111;
    tm->nodes[48].sw.set = SWITCH_CURVED;
    tm->nodes[49].type = NODE_SWITCH;
    StringCopy(tm->nodes[49].name, "SW10");
    tm->nodes[49].id = 49;
    tm->nodes[49].id2 = 10;
    tm->nodes[49].sw.ahead[1].dest = 25;
    tm->nodes[49].sw.ahead[1].distance = 223;
    tm->nodes[49].sw.ahead[0].dest = 33;
    tm->nodes[49].sw.ahead[0].distance = 220;
    tm->nodes[49].sw.behind.dest = 34;
    tm->nodes[49].sw.behind.distance = 74;
    tm->nodes[49].x = 445;
    tm->nodes[49].y = 35;
    tm->nodes[49].sw.set = SWITCH_STRAIGHT;
    tm->nodes[50].type = NODE_SWITCH;
    StringCopy(tm->nodes[50].name, "SW11");
    tm->nodes[50].id = 50;
    tm->nodes[50].id2 = 11;
    tm->nodes[50].sw.ahead[1].dest = 51;
    tm->nodes[50].sw.ahead[1].distance = 190;
    tm->nodes[50].sw.ahead[0].dest = 53;
    tm->nodes[50].sw.ahead[0].distance = 445;
    tm->nodes[50].sw.behind.dest = 22;
    tm->nodes[50].sw.behind.distance = 60;
    tm->nodes[50].x = 220;
    tm->nodes[50].y = 11;
    tm->nodes[50].sw.set = SWITCH_CURVED;
    tm->nodes[51].type = NODE_SWITCH;
    StringCopy(tm->nodes[51].name, "SW12");
    tm->nodes[51].id = 51;
    tm->nodes[51].id2 = 12;
    tm->nodes[51].sw.ahead[1].dest = 0;
    tm->nodes[51].sw.ahead[1].distance = 218;
    tm->nodes[51].sw.ahead[0].dest = 43;
    tm->nodes[51].sw.ahead[0].distance = 185;
    tm->nodes[51].sw.behind.dest = 50;
    tm->nodes[51].sw.behind.distance = 190;
    tm->nodes[51].x = 180;
    tm->nodes[51].y = 11;
    tm->nodes[51].sw.set = SWITCH_CURVED;
    tm->nodes[52].type = NODE_SWITCH;
    StringCopy(tm->nodes[52].name, "SW13");
    tm->nodes[52].id = 52;
    tm->nodes[52].id2 = 13;
    tm->nodes[52].sw.ahead[1].dest = 10;
    tm->nodes[52].sw.ahead[1].distance = 214;
    tm->nodes[52].sw.ahead[0].dest = 39;
    tm->nodes[52].sw.ahead[0].distance = 230;
    tm->nodes[52].sw.behind.dest = 21;
    tm->nodes[52].sw.behind.distance = 140;
    tm->nodes[52].x = 245;
    tm->nodes[52].y = 35;
    tm->nodes[52].sw.set = SWITCH_STRAIGHT;
    tm->nodes[53].type = NODE_SWITCH;
    StringCopy(tm->nodes[53].name, "SW14");
    tm->nodes[53].id = 53;
    tm->nodes[53].id2 = 14;
    tm->nodes[53].sw.ahead[1].dest = 50;
    tm->nodes[53].sw.ahead[1].distance = 445;
    tm->nodes[53].sw.ahead[0].dest = 21;
    tm->nodes[53].sw.ahead[0].distance = 314;
    tm->nodes[53].sw.behind.dest = 1;
    tm->nodes[53].sw.behind.distance = 62;
    tm->nodes[53].x = 150;
    tm->nodes[53].y = 70;
    tm->nodes[53].sw.set = SWITCH_CURVED;
    tm->nodes[54].type = NODE_SWITCH;
    StringCopy(tm->nodes[54].name, "SW15");
    tm->nodes[54].id = 54;
    tm->nodes[54].id2 = 15;
    tm->nodes[54].sw.ahead[1].dest = 18;
    tm->nodes[54].sw.ahead[1].distance = 411;
    tm->nodes[54].sw.ahead[0].dest = 20;
    tm->nodes[54].sw.ahead[0].distance = 305;
    tm->nodes[54].sw.behind.dest = 15;
    tm->nodes[54].sw.behind.distance = 70;
    tm->nodes[54].x = 150;
    tm->nodes[54].y = 200;
    tm->nodes[54].sw.set = SWITCH_CURVED;
    tm->nodes[55].type = NODE_SWITCH;
    StringCopy(tm->nodes[55].name, "SW16");
    tm->nodes[55].id = 55;
    tm->nodes[55].id2 = 16;
    tm->nodes[55].sw.ahead[1].dest = 8;
    tm->nodes[55].sw.ahead[1].distance = 225;
    tm->nodes[55].sw.ahead[0].dest = 9;
    tm->nodes[55].sw.ahead[0].distance = 220;
    tm->nodes[55].sw.behind.dest = 20;
    tm->nodes[55].sw.behind.distance = 146;
    tm->nodes[55].x = 245;
    tm->nodes[55].y = 235;
    tm->nodes[55].sw.set = SWITCH_STRAIGHT;
    tm->nodes[56].type = NODE_SWITCH;
    StringCopy(tm->nodes[56].name, "SW17");
    tm->nodes[56].id = 56;
    tm->nodes[56].id2 = 17;
    tm->nodes[56].sw.ahead[1].dest = 30;
    tm->nodes[56].sw.ahead[1].distance = 225;
    tm->nodes[56].sw.ahead[0].dest = 31;
    tm->nodes[56].sw.ahead[0].distance = 230;
    tm->nodes[56].sw.behind.dest = 38;
    tm->nodes[56].sw.behind.distance = 62;
    tm->nodes[56].x = 445;
    tm->nodes[56].y = 235;
    tm->nodes[56].sw.set = SWITCH_STRAIGHT;
    tm->nodes[57].type = NODE_SWITCH;
    StringCopy(tm->nodes[57].name, "SW18");
    tm->nodes[57].id = 57;
    tm->nodes[57].id2 = 18;
    tm->nodes[57].sw.ahead[1].dest = 19;
    tm->nodes[57].sw.ahead[1].distance = 215;
    tm->nodes[57].sw.ahead[0].dest = 45;
    tm->nodes[57].sw.ahead[0].distance = 338;
    tm->nodes[57].sw.behind.dest = 44;
    tm->nodes[57].sw.behind.distance = 187;
    tm->nodes[57].x = 315;
    tm->nodes[57].y = 285;
    tm->nodes[57].sw.set = SWITCH_CURVED;
    tm->nodes[61].type = NODE_SWITCH;
    StringCopy(tm->nodes[61].name, "SW99");
    tm->nodes[61].id = 61;
    tm->nodes[61].id2 = 153;
    tm->nodes[61].sw.ahead[1].dest = 62;
    tm->nodes[61].sw.ahead[1].distance = 230;
    tm->nodes[61].sw.ahead[0].dest = 16;
    tm->nodes[61].sw.ahead[0].distance = 228;
    tm->nodes[61].sw.behind.dest = 58;
    tm->nodes[61].sw.behind.distance = 24;
    tm->nodes[61].x = 345;
    tm->nodes[61].y = 160;
    tm->nodes[61].sw.set = SWITCH_CURVED;
    tm->nodes[58].type = NODE_SWITCH;
    StringCopy(tm->nodes[58].name, "SW9A");
    tm->nodes[58].id = 58;
    tm->nodes[58].id2 = 154;
    tm->nodes[58].sw.ahead[1].dest = 61;
    tm->nodes[58].sw.ahead[1].distance = 24;
    tm->nodes[58].sw.ahead[0].dest = 14;
    tm->nodes[58].sw.ahead[0].distance = 224;
    tm->nodes[58].sw.behind.dest = 60;
    tm->nodes[58].sw.behind.distance = 32;
    tm->nodes[58].x = 345;
    tm->nodes[58].y = 150;
    tm->nodes[58].sw.set = SWITCH_STRAIGHT;
    tm->nodes[59].type = NODE_SWITCH;
    StringCopy(tm->nodes[59].name, "SW9B");
    tm->nodes[59].id = 59;
    tm->nodes[59].id2 = 155;
    tm->nodes[59].sw.ahead[1].dest = 63;
    tm->nodes[59].sw.ahead[1].distance = 247;
    tm->nodes[59].sw.ahead[0].dest = 24;
    tm->nodes[59].sw.ahead[0].distance = 227;
    tm->nodes[59].sw.behind.dest = 60;
    tm->nodes[59].sw.behind.distance = 24;
    tm->nodes[59].x = 345;
    tm->nodes[59].y = 110;
    tm->nodes[59].sw.set = SWITCH_STRAIGHT;
    tm->nodes[60].type = NODE_SWITCH;
    StringCopy(tm->nodes[60].name, "SW9C");
    tm->nodes[60].id = 60;
    tm->nodes[60].id2 = 156;
    tm->nodes[60].sw.ahead[1].dest = 59;
    tm->nodes[60].sw.ahead[1].distance = 24;
    tm->nodes[60].sw.ahead[0].dest = 32;
    tm->nodes[60].sw.ahead[0].distance = 222;
    tm->nodes[60].sw.behind.dest = 58;
    tm->nodes[60].sw.behind.distance = 32;
    tm->nodes[60].x = 345;
    tm->nodes[60].y = 120;
    tm->nodes[60].sw.set = SWITCH_CURVED;
    tm->nodes[62].type = NODE_STOP;
    StringCopy(tm->nodes[62].name, "DE1");
    tm->nodes[62].id = 62;
    tm->nodes[62].id2 = 0;
    tm->nodes[62].st.ahead.dest = 61;
    tm->nodes[62].st.ahead.distance = 230;
    tm->nodes[62].x = 345;
    tm->nodes[62].y = 200;

    tm->nodes[63].type = NODE_STOP;
    StringCopy(tm->nodes[63].name, "DE2");
    tm->nodes[63].id = 63;
    tm->nodes[63].id2 = 1;
    tm->nodes[63].st.ahead.dest = 59;
    tm->nodes[63].st.ahead.distance = 247;
    tm->nodes[63].x = 345;
    tm->nodes[63].y = 70;

    tm->nodes[64].type = NODE_STOP;
    StringCopy(tm->nodes[64].name, "DE3");
    tm->nodes[64].id = 64;
    tm->nodes[64].id2 = 2;
    tm->nodes[64].st.ahead.dest = 17;
    tm->nodes[64].st.ahead.distance = 410;
    tm->nodes[64].x = 500;
    tm->nodes[64].y = 285;

    tm->nodes[65].type = NODE_STOP;
    StringCopy(tm->nodes[65].name, "DE4");
    tm->nodes[65].id = 65;
    tm->nodes[65].id2 = 3;
    tm->nodes[65].st.ahead.dest = 6;
    tm->nodes[65].st.ahead.distance = 320;
    tm->nodes[65].x = 10;
    tm->nodes[65].y = 30;

    tm->nodes[66].type = NODE_STOP;
    StringCopy(tm->nodes[66].name, "DE5");
    tm->nodes[66].id = 66;
    tm->nodes[66].id2 = 4;
    tm->nodes[66].st.ahead.dest = 0;
    tm->nodes[66].st.ahead.distance = 500;
    tm->nodes[66].x = 10;
    tm->nodes[66].y = 10;

    tm->nodes[67].type = NODE_STOP;
    StringCopy(tm->nodes[67].name, "DE6");
    tm->nodes[67].id = 67;
    tm->nodes[67].id2 = 5;
    tm->nodes[67].st.ahead.dest = 7;
    tm->nodes[67].st.ahead.distance = 145;
    tm->nodes[67].x = 20;
    tm->nodes[67].y = 50;

    tm->nodes[68].type = NODE_STOP;
    StringCopy(tm->nodes[68].name, "DE7");
    tm->nodes[68].id = 68;
    tm->nodes[68].id2 = 6;
    tm->nodes[68].st.ahead.dest = 11;
    tm->nodes[68].st.ahead.distance = 60;
    tm->nodes[68].x = 10;
    tm->nodes[68].y = 245;

    tm->nodes[69].type = NODE_STOP;
    StringCopy(tm->nodes[69].name, "DE8");
    tm->nodes[69].id = 69;
    tm->nodes[69].id2 = 7;
    tm->nodes[69].st.ahead.dest = 5;
    tm->nodes[69].st.ahead.distance = 60;
    tm->nodes[69].x = 20;
    tm->nodes[69].y = 225;

    tm->nodes[70].type = NODE_STOP;
    StringCopy(tm->nodes[70].name, "DE9");
    tm->nodes[70].id = 70;
    tm->nodes[70].id2 = 8;
    tm->nodes[70].st.ahead.dest = 12;
    tm->nodes[70].st.ahead.distance = 70;
    tm->nodes[70].x = 10;
    tm->nodes[70].y = 285;

    tm->nodes[71].type = NODE_STOP;
    StringCopy(tm->nodes[71].name, "DE10");
    tm->nodes[71].id = 71;
    tm->nodes[71].id2 = 9;
    tm->nodes[71].st.ahead.dest = 13;
    tm->nodes[71].st.ahead.distance = 70;
    tm->nodes[71].x = 10;
    tm->nodes[71].y = 265;

    break;

  case 'b':
  case 'B':

    tm->num_nodes = 72;

    tm->sensor_nodes[0 * 2] = 0;
    tm->sensor_nodes[0 * 2 + 1] = 0;
    tm->nodes[0].type = NODE_SENSOR;
    StringCopy(tm->nodes[0].name, "A1");
    tm->nodes[0].id = 0;
    tm->nodes[0].id2 = 0;
    tm->nodes[0].se.ahead.dest = 51;
    tm->nodes[0].se.ahead.distance = 218;
    tm->nodes[0].se.behind.dest = 66;
    tm->nodes[0].se.behind.distance = 500;
    tm->nodes[0].se.trig_forward = 0;
    tm->nodes[0].se.trig_back = 0;
    tm->nodes[0].x = 100;
    tm->nodes[0].y = 10;

    tm->sensor_nodes[1 * 2] = 1;
    tm->sensor_nodes[1 * 2 + 1] = 1;
    tm->nodes[1].type = NODE_SENSOR;
    StringCopy(tm->nodes[1].name, "A3");
    tm->nodes[1].id = 1;
    tm->nodes[1].id2 = 1;
    tm->nodes[1].se.ahead.dest = 53;
    tm->nodes[1].se.ahead.distance = 62;
    tm->nodes[1].se.behind.dest = 15;
    tm->nodes[1].se.behind.distance = 440;
    tm->nodes[1].se.trig_forward = 0;
    tm->nodes[1].se.trig_back = 0;
    tm->nodes[1].x = 135;
    tm->nodes[1].y = 85;

    tm->sensor_nodes[2 * 2] = 2;
    tm->sensor_nodes[2 * 2 + 1] = 2;
    tm->nodes[2].type = NODE_SENSOR;
    StringCopy(tm->nodes[2].name, "A5");
    tm->nodes[2].id = 2;
    tm->nodes[2].id2 = 2;
    tm->nodes[2].se.ahead.dest = 42;
    tm->nodes[2].se.ahead.distance = 216;
    tm->nodes[2].se.behind.dest = 12;
    tm->nodes[2].se.behind.distance = 649;
    tm->nodes[2].se.trig_forward = 0;
    tm->nodes[2].se.trig_back = 0;
    tm->nodes[2].x = 160;
    tm->nodes[2].y = 285;

    tm->sensor_nodes[3 * 2] = 3;
    tm->sensor_nodes[3 * 2 + 1] = 3;
    tm->nodes[3].type = NODE_SENSOR;
    StringCopy(tm->nodes[3].name, "A7");
    tm->nodes[3].id = 3;
    tm->nodes[3].id2 = 3;
    tm->nodes[3].se.ahead.dest = 13;
    tm->nodes[3].se.ahead.distance = 473;
    tm->nodes[3].se.behind.dest = 41;
    tm->nodes[3].se.behind.distance = 211;
    tm->nodes[3].se.trig_forward = 0;
    tm->nodes[3].se.trig_back = 0;
    tm->nodes[3].x = 100;
    tm->nodes[3].y = 265;

    tm->sensor_nodes[4 * 2] = 4;
    tm->sensor_nodes[4 * 2 + 1] = 4;
    tm->nodes[4].type = NODE_SENSOR;
    StringCopy(tm->nodes[4].name, "A9");
    tm->nodes[4].id = 4;
    tm->nodes[4].id2 = 4;
    tm->nodes[4].se.ahead.dest = 11;
    tm->nodes[4].se.ahead.distance = 289;
    tm->nodes[4].se.behind.dest = 40;
    tm->nodes[4].se.behind.distance = 210;
    tm->nodes[4].se.trig_forward = 0;
    tm->nodes[4].se.trig_back = 0;
    tm->nodes[4].x = 70;
    tm->nodes[4].y = 245;

    tm->sensor_nodes[5 * 2] = 5;
    tm->sensor_nodes[5 * 2 + 1] = 5;
    tm->nodes[5].type = NODE_SENSOR;
    StringCopy(tm->nodes[5].name, "A11");
    tm->nodes[5].id = 5;
    tm->nodes[5].id2 = 5;
    tm->nodes[5].se.ahead.dest = 40;
    tm->nodes[5].se.ahead.distance = 265;
    tm->nodes[5].se.behind.dest = 7;
    tm->nodes[5].se.behind.distance = 774;
    tm->nodes[5].se.trig_forward = 0;
    tm->nodes[5].se.trig_back = 0;
    tm->nodes[5].x = 60;
    tm->nodes[5].y = 200;

    tm->sensor_nodes[6 * 2] = 6;
    tm->sensor_nodes[6 * 2 + 1] = 6;
    tm->nodes[6].type = NODE_SENSOR;
    StringCopy(tm->nodes[6].name, "A13");
    tm->nodes[6].id = 6;
    tm->nodes[6].id2 = 6;
    tm->nodes[6].se.ahead.dest = 43;
    tm->nodes[6].se.ahead.distance = 215;
    tm->nodes[6].se.behind.dest = 65;
    tm->nodes[6].se.behind.distance = 320;
    tm->nodes[6].se.trig_forward = 0;
    tm->nodes[6].se.trig_back = 0;
    tm->nodes[6].x = 70;
    tm->nodes[6].y = 30;

    tm->sensor_nodes[7 * 2] = 7;
    tm->sensor_nodes[7 * 2 + 1] = 7;
    tm->nodes[7].type = NODE_SENSOR;
    StringCopy(tm->nodes[7].name, "A15");
    tm->nodes[7].id = 7;
    tm->nodes[7].id2 = 7;
    tm->nodes[7].se.ahead.dest = 5;
    tm->nodes[7].se.ahead.distance = 774;
    tm->nodes[7].se.behind.dest = 43;
    tm->nodes[7].se.behind.distance = 260;
    tm->nodes[7].se.trig_forward = 0;
    tm->nodes[7].se.trig_back = 0;
    tm->nodes[7].x = 60;
    tm->nodes[7].y = 70;

    tm->sensor_nodes[8 * 2] = 8;
    tm->sensor_nodes[8 * 2 + 1] = 8;
    tm->nodes[8].type = NODE_SENSOR;
    StringCopy(tm->nodes[8].name, "B1");
    tm->nodes[8].id = 8;
    tm->nodes[8].id2 = 8;
    tm->nodes[8].se.ahead.dest = 30;
    tm->nodes[8].se.ahead.distance = 398;
    tm->nodes[8].se.behind.dest = 55;
    tm->nodes[8].se.behind.distance = 225;
    tm->nodes[8].se.trig_forward = 0;
    tm->nodes[8].se.trig_back = 0;
    tm->nodes[8].x = 290;
    tm->nodes[8].y = 235;

    tm->sensor_nodes[9 * 2] = 9;
    tm->sensor_nodes[9 * 2 + 1] = 9;
    tm->nodes[9].type = NODE_SENSOR;
    StringCopy(tm->nodes[9].name, "B3");
    tm->nodes[9].id = 9;
    tm->nodes[9].id2 = 9;
    tm->nodes[9].se.ahead.dest = 16;
    tm->nodes[9].se.ahead.distance = 230;
    tm->nodes[9].se.behind.dest = 55;
    tm->nodes[9].se.behind.distance = 220;
    tm->nodes[9].se.trig_forward = 0;
    tm->nodes[9].se.trig_back = 0;
    tm->nodes[9].x = 290;
    tm->nodes[9].y = 215;

    tm->sensor_nodes[10 * 2] = 10;
    tm->sensor_nodes[10 * 2 + 1] = 10;
    tm->nodes[10].type = NODE_SENSOR;
    StringCopy(tm->nodes[10].name, "B5");
    tm->nodes[10].id = 10;
    tm->nodes[10].id2 = 10;
    tm->nodes[10].se.ahead.dest = 25;
    tm->nodes[10].se.ahead.distance = 405;
    tm->nodes[10].se.behind.dest = 52;
    tm->nodes[10].se.behind.distance = 214;
    tm->nodes[10].se.trig_forward = 0;
    tm->nodes[10].se.trig_back = 0;
    tm->nodes[10].x = 290;
    tm->nodes[10].y = 35;

    tm->sensor_nodes[11 * 2] = 11;
    tm->sensor_nodes[11 * 2 + 1] = 11;
    tm->nodes[11].type = NODE_SENSOR;
    StringCopy(tm->nodes[11].name, "B7");
    tm->nodes[11].id = 11;
    tm->nodes[11].id2 = 11;
    tm->nodes[11].se.ahead.dest = 4;
    tm->nodes[11].se.ahead.distance = 289;
    tm->nodes[11].se.behind.dest = 68;
    tm->nodes[11].se.behind.distance = 60;
    tm->nodes[11].se.trig_forward = 0;
    tm->nodes[11].se.trig_back = 0;
    tm->nodes[11].x = 20;
    tm->nodes[11].y = 245;

    tm->sensor_nodes[12 * 2] = 12;
    tm->sensor_nodes[12 * 2 + 1] = 12;
    tm->nodes[12].type = NODE_SENSOR;
    StringCopy(tm->nodes[12].name, "B9");
    tm->nodes[12].id = 12;
    tm->nodes[12].id2 = 12;
    tm->nodes[12].se.ahead.dest = 2;
    tm->nodes[12].se.ahead.distance = 649;
    tm->nodes[12].se.behind.dest = 70;
    tm->nodes[12].se.behind.distance = 70;
    tm->nodes[12].se.trig_forward = 0;
    tm->nodes[12].se.trig_back = 0;
    tm->nodes[12].x = 20;
    tm->nodes[12].y = 285;

    tm->sensor_nodes[13 * 2] = 13;
    tm->sensor_nodes[13 * 2 + 1] = 13;
    tm->nodes[13].type = NODE_SENSOR;
    StringCopy(tm->nodes[13].name, "B11");
    tm->nodes[13].id = 13;
    tm->nodes[13].id2 = 13;
    tm->nodes[13].se.ahead.dest = 3;
    tm->nodes[13].se.ahead.distance = 473;
    tm->nodes[13].se.behind.dest = 71;
    tm->nodes[13].se.behind.distance = 70;
    tm->nodes[13].se.trig_forward = 0;
    tm->nodes[13].se.trig_back = 0;
    tm->nodes[13].x = 20;
    tm->nodes[13].y = 265;

    tm->sensor_nodes[14 * 2] = 14;
    tm->sensor_nodes[14 * 2 + 1] = 14;
    tm->nodes[14].type = NODE_SENSOR;
    StringCopy(tm->nodes[14].name, "B13");
    tm->nodes[14].id = 14;
    tm->nodes[14].id2 = 14;
    tm->nodes[14].se.ahead.dest = 58;
    tm->nodes[14].se.ahead.distance = 224;
    tm->nodes[14].se.behind.dest = 31;
    tm->nodes[14].se.behind.distance = 202;
    tm->nodes[14].se.trig_forward = 0;
    tm->nodes[14].se.trig_back = 0;
    tm->nodes[14].x = 365;
    tm->nodes[14].y = 180;

    tm->sensor_nodes[15 * 2] = 15;
    tm->sensor_nodes[15 * 2 + 1] = 15;
    tm->nodes[15].type = NODE_SENSOR;
    StringCopy(tm->nodes[15].name, "B15");
    tm->nodes[15].id = 15;
    tm->nodes[15].id2 = 15;
    tm->nodes[15].se.ahead.dest = 1;
    tm->nodes[15].se.ahead.distance = 440;
    tm->nodes[15].se.behind.dest = 54;
    tm->nodes[15].se.behind.distance = 70;
    tm->nodes[15].se.trig_forward = 0;
    tm->nodes[15].se.trig_back = 0;
    tm->nodes[15].x = 135;
    tm->nodes[15].y = 185;

    tm->sensor_nodes[16 * 2] = 16;
    tm->sensor_nodes[16 * 2 + 1] = 16;
    tm->nodes[16].type = NODE_SENSOR;
    StringCopy(tm->nodes[16].name, "C1");
    tm->nodes[16].id = 16;
    tm->nodes[16].id2 = 16;
    tm->nodes[16].se.ahead.dest = 9;
    tm->nodes[16].se.ahead.distance = 230;
    tm->nodes[16].se.behind.dest = 61;
    tm->nodes[16].se.behind.distance = 228;
    tm->nodes[16].se.trig_forward = 0;
    tm->nodes[16].se.trig_back = 0;
    tm->nodes[16].x = 325;
    tm->nodes[16].y = 180;

    tm->sensor_nodes[17 * 2] = 17;
    tm->sensor_nodes[17 * 2 + 1] = 17;
    tm->nodes[17].type = NODE_SENSOR;
    StringCopy(tm->nodes[17].name, "C3");
    tm->nodes[17].id = 17;
    tm->nodes[17].id2 = 17;
    tm->nodes[17].se.ahead.dest = 64;
    tm->nodes[17].se.ahead.distance = 410;
    tm->nodes[17].se.behind.dest = 44;
    tm->nodes[17].se.behind.distance = 226;
    tm->nodes[17].se.trig_forward = 0;
    tm->nodes[17].se.trig_back = 0;
    tm->nodes[17].x = 420;
    tm->nodes[17].y = 285;

    tm->sensor_nodes[18 * 2] = 18;
    tm->sensor_nodes[18 * 2 + 1] = 18;
    tm->nodes[18].type = NODE_SENSOR;
    StringCopy(tm->nodes[18].name, "C5");
    tm->nodes[18].id = 18;
    tm->nodes[18].id2 = 18;
    tm->nodes[18].se.ahead.dest = 45;
    tm->nodes[18].se.ahead.distance = 79;
    tm->nodes[18].se.behind.dest = 54;
    tm->nodes[18].se.behind.distance = 411;
    tm->nodes[18].se.trig_forward = 0;
    tm->nodes[18].se.trig_back = 0;
    tm->nodes[18].x = 220;
    tm->nodes[18].y = 260;

    tm->sensor_nodes[19 * 2] = 19;
    tm->sensor_nodes[19 * 2 + 1] = 19;
    tm->nodes[19].type = NODE_SENSOR;
    StringCopy(tm->nodes[19].name, "C7");
    tm->nodes[19].id = 19;
    tm->nodes[19].id2 = 19;
    tm->nodes[19].se.ahead.dest = 57;
    tm->nodes[19].se.ahead.distance = 215;
    tm->nodes[19].se.behind.dest = 42;
    tm->nodes[19].se.behind.distance = 145;
    tm->nodes[19].se.trig_forward = 0;
    tm->nodes[19].se.trig_back = 0;
    tm->nodes[19].x = 265;
    tm->nodes[19].y = 285;

    tm->sensor_nodes[20 * 2] = 20;
    tm->sensor_nodes[20 * 2 + 1] = 20;
    tm->nodes[20].type = NODE_SENSOR;
    StringCopy(tm->nodes[20].name, "C9");
    tm->nodes[20].id = 20;
    tm->nodes[20].id2 = 20;
    tm->nodes[20].se.ahead.dest = 54;
    tm->nodes[20].se.ahead.distance = 305;
    tm->nodes[20].se.behind.dest = 55;
    tm->nodes[20].se.behind.distance = 146;
    tm->nodes[20].se.trig_forward = 0;
    tm->nodes[20].se.trig_back = 0;
    tm->nodes[20].x = 200;
    tm->nodes[20].y = 235;

    tm->sensor_nodes[21 * 2] = 21;
    tm->sensor_nodes[21 * 2 + 1] = 21;
    tm->nodes[21].type = NODE_SENSOR;
    StringCopy(tm->nodes[21].name, "C11");
    tm->nodes[21].id = 21;
    tm->nodes[21].id2 = 21;
    tm->nodes[21].se.ahead.dest = 52;
    tm->nodes[21].se.ahead.distance = 140;
    tm->nodes[21].se.behind.dest = 53;
    tm->nodes[21].se.behind.distance = 314;
    tm->nodes[21].se.trig_forward = 0;
    tm->nodes[21].se.trig_back = 0;
    tm->nodes[21].x = 200;
    tm->nodes[21].y = 35;

    tm->sensor_nodes[22 * 2] = 22;
    tm->sensor_nodes[22 * 2 + 1] = 22;
    tm->nodes[22].type = NODE_SENSOR;
    StringCopy(tm->nodes[22].name, "C13");
    tm->nodes[22].id = 22;
    tm->nodes[22].id2 = 22;
    tm->nodes[22].se.ahead.dest = 35;
    tm->nodes[22].se.ahead.distance = 785;
    tm->nodes[22].se.behind.dest = 50;
    tm->nodes[22].se.behind.distance = 60;
    tm->nodes[22].se.trig_forward = 0;
    tm->nodes[22].se.trig_back = 0;
    tm->nodes[22].x = 245;
    tm->nodes[22].y = 11;

    tm->sensor_nodes[23 * 2] = 23;
    tm->sensor_nodes[23 * 2 + 1] = 23;
    tm->nodes[23].type = NODE_SENSOR;
    StringCopy(tm->nodes[23].name, "C15");
    tm->nodes[23].id = 23;
    tm->nodes[23].id2 = 23;
    tm->nodes[23].se.ahead.dest = 29;
    tm->nodes[23].se.ahead.distance = 405;
    tm->nodes[23].se.behind.dest = 45;
    tm->nodes[23].se.behind.distance = 223;
    tm->nodes[23].se.trig_forward = 0;
    tm->nodes[23].se.trig_back = 0;
    tm->nodes[23].x = 294;
    tm->nodes[23].y = 260;

    tm->sensor_nodes[24 * 2] = 24;
    tm->sensor_nodes[24 * 2 + 1] = 24;
    tm->nodes[24].type = NODE_SENSOR;
    StringCopy(tm->nodes[24].name, "D1");
    tm->nodes[24].id = 24;
    tm->nodes[24].id2 = 24;
    tm->nodes[24].se.ahead.dest = 59;
    tm->nodes[24].se.ahead.distance = 227;
    tm->nodes[24].se.behind.dest = 33;
    tm->nodes[24].se.behind.distance = 200;
    tm->nodes[24].se.trig_forward = 0;
    tm->nodes[24].se.trig_back = 0;
    tm->nodes[24].x = 365;
    tm->nodes[24].y = 90;

    tm->sensor_nodes[25 * 2] = 25;
    tm->sensor_nodes[25 * 2 + 1] = 25;
    tm->nodes[25].type = NODE_SENSOR;
    StringCopy(tm->nodes[25].name, "D3");
    tm->nodes[25].id = 25;
    tm->nodes[25].id2 = 25;
    tm->nodes[25].se.ahead.dest = 49;
    tm->nodes[25].se.ahead.distance = 223;
    tm->nodes[25].se.behind.dest = 10;
    tm->nodes[25].se.behind.distance = 405;
    tm->nodes[25].se.trig_forward = 0;
    tm->nodes[25].se.trig_back = 0;
    tm->nodes[25].x = 400;
    tm->nodes[25].y = 35;

    tm->sensor_nodes[26 * 2] = 26;
    tm->sensor_nodes[26 * 2 + 1] = 26;
    tm->nodes[26].type = NODE_SENSOR;
    StringCopy(tm->nodes[26].name, "D5");
    tm->nodes[26].id = 26;
    tm->nodes[26].id2 = 26;
    tm->nodes[26].se.ahead.dest = 34;
    tm->nodes[26].se.ahead.distance = 275;
    tm->nodes[26].se.behind.dest = 48;
    tm->nodes[26].se.behind.distance = 213;
    tm->nodes[26].se.trig_forward = 0;
    tm->nodes[26].se.trig_back = 0;
    tm->nodes[26].x = 550;
    tm->nodes[26].y = 70;

    tm->sensor_nodes[27 * 2] = 27;
    tm->sensor_nodes[27 * 2 + 1] = 27;
    tm->nodes[27].type = NODE_SENSOR;
    StringCopy(tm->nodes[27].name, "D7");
    tm->nodes[27].id = 27;
    tm->nodes[27].id2 = 27;
    tm->nodes[27].se.ahead.dest = 48;
    tm->nodes[27].se.ahead.distance = 290;
    tm->nodes[27].se.behind.dest = 35;
    tm->nodes[27].se.behind.distance = 375;
    tm->nodes[27].se.trig_forward = 0;
    tm->nodes[27].se.trig_back = 0;
    tm->nodes[27].x = 550;
    tm->nodes[27].y = 42;

    tm->sensor_nodes[28 * 2] = 28;
    tm->sensor_nodes[28 * 2 + 1] = 28;
    tm->nodes[28].type = NODE_SENSOR;
    StringCopy(tm->nodes[28].name, "D9");
    tm->nodes[28].id = 28;
    tm->nodes[28].id2 = 28;
    tm->nodes[28].se.ahead.dest = 37;
    tm->nodes[28].se.ahead.distance = 284;
    tm->nodes[28].se.behind.dest = 47;
    tm->nodes[28].se.behind.distance = 291;
    tm->nodes[28].se.trig_forward = 0;
    tm->nodes[28].se.trig_back = 0;
    tm->nodes[28].x = 550;
    tm->nodes[28].y = 225;

    tm->sensor_nodes[29 * 2] = 29;
    tm->sensor_nodes[29 * 2 + 1] = 29;
    tm->nodes[29].type = NODE_SENSOR;
    StringCopy(tm->nodes[29].name, "D11");
    tm->nodes[29].id = 29;
    tm->nodes[29].id2 = 29;
    tm->nodes[29].se.ahead.dest = 23;
    tm->nodes[29].se.ahead.distance = 405;
    tm->nodes[29].se.behind.dest = 46;
    tm->nodes[29].se.behind.distance = 220;
    tm->nodes[29].se.trig_forward = 0;
    tm->nodes[29].se.trig_back = 0;
    tm->nodes[29].x = 400;
    tm->nodes[29].y = 260;

    tm->sensor_nodes[30 * 2] = 30;
    tm->sensor_nodes[30 * 2 + 1] = 30;
    tm->nodes[30].type = NODE_SENSOR;
    StringCopy(tm->nodes[30].name, "D13");
    tm->nodes[30].id = 30;
    tm->nodes[30].id2 = 30;
    tm->nodes[30].se.ahead.dest = 8;
    tm->nodes[30].se.ahead.distance = 398;
    tm->nodes[30].se.behind.dest = 56;
    tm->nodes[30].se.behind.distance = 225;
    tm->nodes[30].se.trig_forward = 0;
    tm->nodes[30].se.trig_back = 0;
    tm->nodes[30].x = 400;
    tm->nodes[30].y = 235;

    tm->sensor_nodes[31 * 2] = 31;
    tm->sensor_nodes[31 * 2 + 1] = 31;
    tm->nodes[31].type = NODE_SENSOR;
    StringCopy(tm->nodes[31].name, "D15");
    tm->nodes[31].id = 31;
    tm->nodes[31].id2 = 31;
    tm->nodes[31].se.ahead.dest = 14;
    tm->nodes[31].se.ahead.distance = 202;
    tm->nodes[31].se.behind.dest = 56;
    tm->nodes[31].se.behind.distance = 230;
    tm->nodes[31].se.trig_forward = 0;
    tm->nodes[31].se.trig_back = 0;
    tm->nodes[31].x = 400;
    tm->nodes[31].y = 215;

    tm->sensor_nodes[32 * 2] = 32;
    tm->sensor_nodes[32 * 2 + 1] = 32;
    tm->nodes[32].type = NODE_SENSOR;
    StringCopy(tm->nodes[32].name, "E1");
    tm->nodes[32].id = 32;
    tm->nodes[32].id2 = 32;
    tm->nodes[32].se.ahead.dest = 60;
    tm->nodes[32].se.ahead.distance = 222;
    tm->nodes[32].se.behind.dest = 39;
    tm->nodes[32].se.behind.distance = 203;
    tm->nodes[32].se.trig_forward = 0;
    tm->nodes[32].se.trig_back = 0;
    tm->nodes[32].x = 325;
    tm->nodes[32].y = 90;

    tm->sensor_nodes[33 * 2] = 33;
    tm->sensor_nodes[33 * 2 + 1] = 33;
    tm->nodes[33].type = NODE_SENSOR;
    StringCopy(tm->nodes[33].name, "E3");
    tm->nodes[33].id = 33;
    tm->nodes[33].id2 = 33;
    tm->nodes[33].se.ahead.dest = 24;
    tm->nodes[33].se.ahead.distance = 200;
    tm->nodes[33].se.behind.dest = 49;
    tm->nodes[33].se.behind.distance = 220;
    tm->nodes[33].se.trig_forward = 0;
    tm->nodes[33].se.trig_back = 0;
    tm->nodes[33].x = 400;
    tm->nodes[33].y = 50;

    tm->sensor_nodes[34 * 2] = 34;
    tm->sensor_nodes[34 * 2 + 1] = 34;
    tm->nodes[34].type = NODE_SENSOR;
    StringCopy(tm->nodes[34].name, "E5");
    tm->nodes[34].id = 34;
    tm->nodes[34].id2 = 34;
    tm->nodes[34].se.ahead.dest = 26;
    tm->nodes[34].se.ahead.distance = 275;
    tm->nodes[34].se.behind.dest = 49;
    tm->nodes[34].se.behind.distance = 74;
    tm->nodes[34].se.trig_forward = 0;
    tm->nodes[34].se.trig_back = 0;
    tm->nodes[34].x = 470;
    tm->nodes[34].y = 35;

    tm->sensor_nodes[35 * 2] = 35;
    tm->sensor_nodes[35 * 2 + 1] = 35;
    tm->nodes[35].type = NODE_SENSOR;
    StringCopy(tm->nodes[35].name, "E7");
    tm->nodes[35].id = 35;
    tm->nodes[35].id2 = 35;
    tm->nodes[35].se.ahead.dest = 27;
    tm->nodes[35].se.ahead.distance = 375;
    tm->nodes[35].se.behind.dest = 22;
    tm->nodes[35].se.behind.distance = 785;
    tm->nodes[35].se.trig_forward = 0;
    tm->nodes[35].se.trig_back = 0;
    tm->nodes[35].x = 470;
    tm->nodes[35].y = 11;

    tm->sensor_nodes[36 * 2] = 36;
    tm->sensor_nodes[36 * 2 + 1] = 36;
    tm->nodes[36].type = NODE_SENSOR;
    StringCopy(tm->nodes[36].name, "E9");
    tm->nodes[36].id = 36;
    tm->nodes[36].id2 = 36;
    tm->nodes[36].se.ahead.dest = 47;
    tm->nodes[36].se.ahead.distance = 215;
    tm->nodes[36].se.behind.dest = 38;
    tm->nodes[36].se.behind.distance = 275;
    tm->nodes[36].se.trig_forward = 0;
    tm->nodes[36].se.trig_back = 0;
    tm->nodes[36].x = 550;
    tm->nodes[36].y = 200;

    tm->sensor_nodes[37 * 2] = 37;
    tm->sensor_nodes[37 * 2 + 1] = 37;
    tm->nodes[37].type = NODE_SENSOR;
    StringCopy(tm->nodes[37].name, "E11");
    tm->nodes[37].id = 37;
    tm->nodes[37].id2 = 37;
    tm->nodes[37].se.ahead.dest = 28;
    tm->nodes[37].se.ahead.distance = 284;
    tm->nodes[37].se.behind.dest = 46;
    tm->nodes[37].se.behind.distance = 65;
    tm->nodes[37].se.trig_forward = 0;
    tm->nodes[37].se.trig_back = 0;
    tm->nodes[37].x = 470;
    tm->nodes[37].y = 260;

    tm->sensor_nodes[38 * 2] = 38;
    tm->sensor_nodes[38 * 2 + 1] = 38;
    tm->nodes[38].type = NODE_SENSOR;
    StringCopy(tm->nodes[38].name, "E13");
    tm->nodes[38].id = 38;
    tm->nodes[38].id2 = 38;
    tm->nodes[38].se.ahead.dest = 56;
    tm->nodes[38].se.ahead.distance = 62;
    tm->nodes[38].se.behind.dest = 36;
    tm->nodes[38].se.behind.distance = 275;
    tm->nodes[38].se.trig_forward = 0;
    tm->nodes[38].se.trig_back = 0;
    tm->nodes[38].x = 470;
    tm->nodes[38].y = 235;

    tm->sensor_nodes[39 * 2] = 39;
    tm->sensor_nodes[39 * 2 + 1] = 39;
    tm->nodes[39].type = NODE_SENSOR;
    StringCopy(tm->nodes[39].name, "E15");
    tm->nodes[39].id = 39;
    tm->nodes[39].id2 = 39;
    tm->nodes[39].se.ahead.dest = 52;
    tm->nodes[39].se.ahead.distance = 230;
    tm->nodes[39].se.behind.dest = 32;
    tm->nodes[39].se.behind.distance = 203;
    tm->nodes[39].se.trig_forward = 0;
    tm->nodes[39].se.trig_back = 0;
    tm->nodes[39].x = 290;
    tm->nodes[39].y = 50;

    tm->nodes[40].type = NODE_SWITCH;
    StringCopy(tm->nodes[40].name, "SW1");
    tm->nodes[40].id = 40;
    tm->nodes[40].id2 = 1;
    tm->nodes[40].sw.ahead[1].dest = 5;
    tm->nodes[40].sw.ahead[1].distance = 245;
    tm->nodes[40].sw.ahead[0].dest = 4;
    tm->nodes[40].sw.ahead[0].distance = 210;
    tm->nodes[40].sw.behind.dest = 41;
    tm->nodes[40].sw.behind.distance = 191;
    tm->nodes[40].x = 140;
    tm->nodes[40].y = 255;
    tm->nodes[40].sw.set = SWITCH_CURVED;
    tm->nodes[41].type = NODE_SWITCH;
    StringCopy(tm->nodes[41].name, "SW2");
    tm->nodes[41].id = 41;
    tm->nodes[41].id2 = 2;
    tm->nodes[41].sw.ahead[1].dest = 40;
    tm->nodes[41].sw.ahead[1].distance = 191;
    tm->nodes[41].sw.ahead[0].dest = 3;
    tm->nodes[41].sw.ahead[0].distance = 211;
    tm->nodes[41].sw.behind.dest = 42;
    tm->nodes[41].sw.behind.distance = 182;
    tm->nodes[41].x = 180;
    tm->nodes[41].y = 275;
    tm->nodes[41].sw.set = SWITCH_CURVED;
    tm->nodes[42].type = NODE_SWITCH;
    StringCopy(tm->nodes[42].name, "SW3");
    tm->nodes[42].id = 42;
    tm->nodes[42].id2 = 3;
    tm->nodes[42].sw.ahead[1].dest = 2;
    tm->nodes[42].sw.ahead[1].distance = 216;
    tm->nodes[42].sw.ahead[0].dest = 41;
    tm->nodes[42].sw.ahead[0].distance = 182;
    tm->nodes[42].sw.behind.dest = 19;
    tm->nodes[42].sw.behind.distance = 145;
    tm->nodes[42].x = 230;
    tm->nodes[42].y = 285;
    tm->nodes[42].sw.set = SWITCH_CURVED;
    tm->nodes[43].type = NODE_SWITCH;
    StringCopy(tm->nodes[43].name, "SW4");
    tm->nodes[43].id = 43;
    tm->nodes[43].id2 = 4;
    tm->nodes[43].sw.ahead[1].dest = 7;
    tm->nodes[43].sw.ahead[1].distance = 260;
    tm->nodes[43].sw.ahead[0].dest = 6;
    tm->nodes[43].sw.ahead[0].distance = 215;
    tm->nodes[43].sw.behind.dest = 51;
    tm->nodes[43].sw.behind.distance = 185;
    tm->nodes[43].x = 140;
    tm->nodes[43].y = 20;
    tm->nodes[43].sw.set = SWITCH_STRAIGHT;
    tm->nodes[44].type = NODE_SWITCH;
    StringCopy(tm->nodes[44].name, "SW5");
    tm->nodes[44].id = 44;
    tm->nodes[44].id2 = 5;
    tm->nodes[44].sw.ahead[1].dest = 17;
    tm->nodes[44].sw.ahead[1].distance = 226;
    tm->nodes[44].sw.ahead[0].dest = 46;
    tm->nodes[44].sw.ahead[0].distance = 334;
    tm->nodes[44].sw.behind.dest = 57;
    tm->nodes[44].sw.behind.distance = 187;
    tm->nodes[44].x = 375;
    tm->nodes[44].y = 285;
    tm->nodes[44].sw.set = SWITCH_CURVED;
    tm->nodes[45].type = NODE_SWITCH;
    StringCopy(tm->nodes[45].name, "SW6");
    tm->nodes[45].id = 45;
    tm->nodes[45].id2 = 6;
    tm->nodes[45].sw.ahead[1].dest = 23;
    tm->nodes[45].sw.ahead[1].distance = 223;
    tm->nodes[45].sw.ahead[0].dest = 57;
    tm->nodes[45].sw.ahead[0].distance = 338;
    tm->nodes[45].sw.behind.dest = 18;
    tm->nodes[45].sw.behind.distance = 79;
    tm->nodes[45].x = 245;
    tm->nodes[45].y = 260;
    tm->nodes[45].sw.set = SWITCH_STRAIGHT;
    tm->nodes[46].type = NODE_SWITCH;
    StringCopy(tm->nodes[46].name, "SW7");
    tm->nodes[46].id = 46;
    tm->nodes[46].id2 = 7;
    tm->nodes[46].sw.ahead[1].dest = 29;
    tm->nodes[46].sw.ahead[1].distance = 220;
    tm->nodes[46].sw.ahead[0].dest = 44;
    tm->nodes[46].sw.ahead[0].distance = 334;
    tm->nodes[46].sw.behind.dest = 37;
    tm->nodes[46].sw.behind.distance = 65;
    tm->nodes[46].x = 447;
    tm->nodes[46].y = 260;
    tm->nodes[46].sw.set = SWITCH_STRAIGHT;
    tm->nodes[47].type = NODE_SWITCH;
    StringCopy(tm->nodes[47].name, "SW8");
    tm->nodes[47].id = 47;
    tm->nodes[47].id2 = 8;
    tm->nodes[47].sw.ahead[1].dest = 28;
    tm->nodes[47].sw.ahead[1].distance = 291;
    tm->nodes[47].sw.ahead[0].dest = 36;
    tm->nodes[47].sw.ahead[0].distance = 215;
    tm->nodes[47].sw.behind.dest = 48;
    tm->nodes[47].sw.behind.distance = 193;
    tm->nodes[47].x = 570;
    tm->nodes[47].y = 166;
    tm->nodes[47].sw.set = SWITCH_CURVED;
    tm->nodes[48].type = NODE_SWITCH;
    StringCopy(tm->nodes[48].name, "SW9");
    tm->nodes[48].id = 48;
    tm->nodes[48].id2 = 9;
    tm->nodes[48].sw.ahead[1].dest = 27;
    tm->nodes[48].sw.ahead[1].distance = 290;
    tm->nodes[48].sw.ahead[0].dest = 26;
    tm->nodes[48].sw.ahead[0].distance = 213;
    tm->nodes[48].sw.behind.dest = 47;
    tm->nodes[48].sw.behind.distance = 193;
    tm->nodes[48].x = 570;
    tm->nodes[48].y = 111;
    tm->nodes[48].sw.set = SWITCH_CURVED;
    tm->nodes[49].type = NODE_SWITCH;
    StringCopy(tm->nodes[49].name, "SW10");
    tm->nodes[49].id = 49;
    tm->nodes[49].id2 = 10;
    tm->nodes[49].sw.ahead[1].dest = 25;
    tm->nodes[49].sw.ahead[1].distance = 223;
    tm->nodes[49].sw.ahead[0].dest = 33;
    tm->nodes[49].sw.ahead[0].distance = 220;
    tm->nodes[49].sw.behind.dest = 34;
    tm->nodes[49].sw.behind.distance = 74;
    tm->nodes[49].x = 445;
    tm->nodes[49].y = 35;
    tm->nodes[49].sw.set = SWITCH_STRAIGHT;
    tm->nodes[50].type = NODE_SWITCH;
    StringCopy(tm->nodes[50].name, "SW11");
    tm->nodes[50].id = 50;
    tm->nodes[50].id2 = 11;
    tm->nodes[50].sw.ahead[1].dest = 51;
    tm->nodes[50].sw.ahead[1].distance = 190;
    tm->nodes[50].sw.ahead[0].dest = 53;
    tm->nodes[50].sw.ahead[0].distance = 445;
    tm->nodes[50].sw.behind.dest = 22;
    tm->nodes[50].sw.behind.distance = 60;
    tm->nodes[50].x = 220;
    tm->nodes[50].y = 11;
    tm->nodes[50].sw.set = SWITCH_CURVED;
    tm->nodes[51].type = NODE_SWITCH;
    StringCopy(tm->nodes[51].name, "SW12");
    tm->nodes[51].id = 51;
    tm->nodes[51].id2 = 12;
    tm->nodes[51].sw.ahead[1].dest = 0;
    tm->nodes[51].sw.ahead[1].distance = 218;
    tm->nodes[51].sw.ahead[0].dest = 43;
    tm->nodes[51].sw.ahead[0].distance = 185;
    tm->nodes[51].sw.behind.dest = 50;
    tm->nodes[51].sw.behind.distance = 190;
    tm->nodes[51].x = 180;
    tm->nodes[51].y = 11;
    tm->nodes[51].sw.set = SWITCH_CURVED;
    tm->nodes[52].type = NODE_SWITCH;
    StringCopy(tm->nodes[52].name, "SW13");
    tm->nodes[52].id = 52;
    tm->nodes[52].id2 = 13;
    tm->nodes[52].sw.ahead[1].dest = 10;
    tm->nodes[52].sw.ahead[1].distance = 214;
    tm->nodes[52].sw.ahead[0].dest = 39;
    tm->nodes[52].sw.ahead[0].distance = 230;
    tm->nodes[52].sw.behind.dest = 21;
    tm->nodes[52].sw.behind.distance = 140;
    tm->nodes[52].x = 245;
    tm->nodes[52].y = 35;
    tm->nodes[52].sw.set = SWITCH_STRAIGHT;
    tm->nodes[53].type = NODE_SWITCH;
    StringCopy(tm->nodes[53].name, "SW14");
    tm->nodes[53].id = 53;
    tm->nodes[53].id2 = 14;
    tm->nodes[53].sw.ahead[1].dest = 50;
    tm->nodes[53].sw.ahead[1].distance = 445;
    tm->nodes[53].sw.ahead[0].dest = 21;
    tm->nodes[53].sw.ahead[0].distance = 314;
    tm->nodes[53].sw.behind.dest = 1;
    tm->nodes[53].sw.behind.distance = 62;
    tm->nodes[53].x = 150;
    tm->nodes[53].y = 70;
    tm->nodes[53].sw.set = SWITCH_CURVED;
    tm->nodes[54].type = NODE_SWITCH;
    StringCopy(tm->nodes[54].name, "SW15");
    tm->nodes[54].id = 54;
    tm->nodes[54].id2 = 15;
    tm->nodes[54].sw.ahead[1].dest = 18;
    tm->nodes[54].sw.ahead[1].distance = 411;
    tm->nodes[54].sw.ahead[0].dest = 20;
    tm->nodes[54].sw.ahead[0].distance = 305;
    tm->nodes[54].sw.behind.dest = 15;
    tm->nodes[54].sw.behind.distance = 70;
    tm->nodes[54].x = 150;
    tm->nodes[54].y = 200;
    tm->nodes[54].sw.set = SWITCH_CURVED;
    tm->nodes[55].type = NODE_SWITCH;
    StringCopy(tm->nodes[55].name, "SW16");
    tm->nodes[55].id = 55;
    tm->nodes[55].id2 = 16;
    tm->nodes[55].sw.ahead[1].dest = 8;
    tm->nodes[55].sw.ahead[1].distance = 225;
    tm->nodes[55].sw.ahead[0].dest = 9;
    tm->nodes[55].sw.ahead[0].distance = 220;
    tm->nodes[55].sw.behind.dest = 20;
    tm->nodes[55].sw.behind.distance = 146;
    tm->nodes[55].x = 245;
    tm->nodes[55].y = 235;
    tm->nodes[55].sw.set = SWITCH_STRAIGHT;
    tm->nodes[56].type = NODE_SWITCH;
    StringCopy(tm->nodes[56].name, "SW17");
    tm->nodes[56].id = 56;
    tm->nodes[56].id2 = 17;
    tm->nodes[56].sw.ahead[1].dest = 30;
    tm->nodes[56].sw.ahead[1].distance = 225;
    tm->nodes[56].sw.ahead[0].dest = 31;
    tm->nodes[56].sw.ahead[0].distance = 230;
    tm->nodes[56].sw.behind.dest = 38;
    tm->nodes[56].sw.behind.distance = 62;
    tm->nodes[56].x = 445;
    tm->nodes[56].y = 235;
    tm->nodes[56].sw.set = SWITCH_STRAIGHT;
    tm->nodes[57].type = NODE_SWITCH;
    StringCopy(tm->nodes[57].name, "SW18");
    tm->nodes[57].id = 57;
    tm->nodes[57].id2 = 18;
    tm->nodes[57].sw.ahead[1].dest = 19;
    tm->nodes[57].sw.ahead[1].distance = 215;
    tm->nodes[57].sw.ahead[0].dest = 45;
    tm->nodes[57].sw.ahead[0].distance = 338;
    tm->nodes[57].sw.behind.dest = 44;
    tm->nodes[57].sw.behind.distance = 187;
    tm->nodes[57].x = 315;
    tm->nodes[57].y = 285;
    tm->nodes[57].sw.set = SWITCH_CURVED;
    tm->nodes[61].type = NODE_SWITCH;
    StringCopy(tm->nodes[61].name, "SW99");
    tm->nodes[61].id = 61;
    tm->nodes[61].id2 = 153;
    tm->nodes[61].sw.ahead[1].dest = 62;
    tm->nodes[61].sw.ahead[1].distance = 230;
    tm->nodes[61].sw.ahead[0].dest = 16;
    tm->nodes[61].sw.ahead[0].distance = 228;
    tm->nodes[61].sw.behind.dest = 58;
    tm->nodes[61].sw.behind.distance = 24;
    tm->nodes[61].x = 345;
    tm->nodes[61].y = 155;
    tm->nodes[61].sw.set = SWITCH_CURVED;
    tm->nodes[58].type = NODE_SWITCH;
    StringCopy(tm->nodes[58].name, "SW9A");
    tm->nodes[58].id = 58;
    tm->nodes[58].id2 = 154;
    tm->nodes[58].sw.ahead[1].dest = 61;
    tm->nodes[58].sw.ahead[1].distance = 24;
    tm->nodes[58].sw.ahead[0].dest = 14;
    tm->nodes[58].sw.ahead[0].distance = 224;
    tm->nodes[58].sw.behind.dest = 60;
    tm->nodes[58].sw.behind.distance = 32;
    tm->nodes[58].x = 345;
    tm->nodes[58].y = 145;
    tm->nodes[58].sw.set = SWITCH_STRAIGHT;
    tm->nodes[59].type = NODE_SWITCH;
    StringCopy(tm->nodes[59].name, "SW9B");
    tm->nodes[59].id = 59;
    tm->nodes[59].id2 = 155;
    tm->nodes[59].sw.ahead[1].dest = 63;
    tm->nodes[59].sw.ahead[1].distance = 247;
    tm->nodes[59].sw.ahead[0].dest = 24;
    tm->nodes[59].sw.ahead[0].distance = 227;
    tm->nodes[59].sw.behind.dest = 60;
    tm->nodes[59].sw.behind.distance = 24;
    tm->nodes[59].x = 345;
    tm->nodes[59].y = 120;
    tm->nodes[59].sw.set = SWITCH_STRAIGHT;
    tm->nodes[60].type = NODE_SWITCH;
    StringCopy(tm->nodes[60].name, "SW9C");
    tm->nodes[60].id = 60;
    tm->nodes[60].id2 = 156;
    tm->nodes[60].sw.ahead[1].dest = 59;
    tm->nodes[60].sw.ahead[1].distance = 24;
    tm->nodes[60].sw.ahead[0].dest = 32;
    tm->nodes[60].sw.ahead[0].distance = 222;
    tm->nodes[60].sw.behind.dest = 58;
    tm->nodes[60].sw.behind.distance = 32;
    tm->nodes[60].x = 345;
    tm->nodes[60].y = 130;
    tm->nodes[60].sw.set = SWITCH_CURVED;
    tm->nodes[62].type = NODE_STOP;
    StringCopy(tm->nodes[62].name, "DE1");
    tm->nodes[62].id = 62;
    tm->nodes[62].id2 = 0;
    tm->nodes[62].st.ahead.dest = 61;
    tm->nodes[62].st.ahead.distance = 230;
    tm->nodes[62].x = 345;
    tm->nodes[62].y = 200;

    tm->nodes[63].type = NODE_STOP;
    StringCopy(tm->nodes[63].name, "DE2");
    tm->nodes[63].id = 63;
    tm->nodes[63].id2 = 1;
    tm->nodes[63].st.ahead.dest = 59;
    tm->nodes[63].st.ahead.distance = 247;
    tm->nodes[63].x = 345;
    tm->nodes[63].y = 70;

    tm->nodes[64].type = NODE_STOP;
    StringCopy(tm->nodes[64].name, "DE3");
    tm->nodes[64].id = 64;
    tm->nodes[64].id2 = 2;
    tm->nodes[64].st.ahead.dest = 17;
    tm->nodes[64].st.ahead.distance = 410;
    tm->nodes[64].x = 500;
    tm->nodes[64].y = 285;

    tm->nodes[65].type = NODE_STOP;
    StringCopy(tm->nodes[65].name, "DE4");
    tm->nodes[65].id = 65;
    tm->nodes[65].id2 = 3;
    tm->nodes[65].st.ahead.dest = 6;
    tm->nodes[65].st.ahead.distance = 320;
    tm->nodes[65].x = 10;
    tm->nodes[65].y = 30;

    tm->nodes[66].type = NODE_STOP;
    StringCopy(tm->nodes[66].name, "DE5");
    tm->nodes[66].id = 66;
    tm->nodes[66].id2 = 4;
    tm->nodes[66].st.ahead.dest = 0;
    tm->nodes[66].st.ahead.distance = 500;
    tm->nodes[66].x = 10;
    tm->nodes[66].y = 10;

    tm->nodes[68].type = NODE_STOP;
    StringCopy(tm->nodes[68].name, "DE7");
    tm->nodes[68].id = 68;
    tm->nodes[68].id2 = 6;
    tm->nodes[68].st.ahead.dest = 11;
    tm->nodes[68].st.ahead.distance = 60;
    tm->nodes[68].x = 10;
    tm->nodes[68].y = 245;

    tm->nodes[70].type = NODE_STOP;
    StringCopy(tm->nodes[70].name, "DE9");
    tm->nodes[70].id = 70;
    tm->nodes[70].id2 = 8;
    tm->nodes[70].st.ahead.dest = 12;
    tm->nodes[70].st.ahead.distance = 70;
    tm->nodes[70].x = 10;
    tm->nodes[70].y = 285;

    tm->nodes[71].type = NODE_STOP;
    StringCopy(tm->nodes[71].name, "DE10");
    tm->nodes[71].id = 71;
    tm->nodes[71].id2 = 9;
    tm->nodes[71].st.ahead.dest = 13;
    tm->nodes[71].st.ahead.distance = 70;
    tm->nodes[71].x = 10;
    tm->nodes[71].y = 265;
    
    break;
  }
}

